import request from '@/utils/request'

// 查询archiveBorrowCar列表
export function listArchiveBorrowCar(query) {
  return request({
    url: '/archive/archiveBorrowCar/list',
    method: 'get',
    params: query
  })
}

// 查询archiveBorrowCar详细
export function getArchiveBorrowCar(carId) {
  return request({
    url: '/archive/archiveBorrowCar/' + carId,
    method: 'get'
  })
}

// 新增archiveBorrowCar
export function addArchiveBorrowCar(data) {
  return request({
    url: '/archive/archiveBorrowCar',
    method: 'post',
    data: data
  })
}

// 修改archiveBorrowCar
export function updateArchiveBorrowCar(data) {
  return request({
    url: '/archive/archiveBorrowCar',
    method: 'put',
    data: data
  })
}

// 删除archiveBorrowCar
export function delArchiveBorrowCar(carId) {
  return request({
    url: '/archive/archiveBorrowCar/' + carId,
    method: 'delete'
  })
}
